public class Student extends Person {
    private String grade;
    private String major;


    public Student(String personId, String name, String department, String grade, String major) {

        super(personId, name, department);
        this.grade = grade;
        this.major = major;
    }



    public void printWorksheet() {
        super.printWorksheet(); // 复用父类“基础工作单”打印逻辑
        System.out.println("=== 学生课表 ===");
        System.out.println("年级：" + grade);
        System.out.println("专业：" + major);
        System.out.println("课程：Java编程、数据结构、人工智能\n");
    }
}
